package com.common.platform.base.tree.node;


import lombok.Data;


@Data
public class ZTreeNode {

    /**
     * 节点Id
     */
    private  long id;

    /**
     * 父节点Id
     */

    private Long pId;

    /**
     * 节点名称
     */

    private String name;

    /**
     * 是否打开节点
     */

    private Boolean open;
    /**
     * 是否被选中
     */
    private Boolean checked;

    /**
     * 节点图表
     */

    private String iconSkin;

    /**
     * 创建Tree的父级节点
     */
    private static ZTreeNode createParent(){
        ZTreeNode zTreeNode = new ZTreeNode();
        zTreeNode.setChecked(true);
        zTreeNode.setId(0L);
        zTreeNode.setName("顶级");
        zTreeNode.setOpen(true);
        zTreeNode.setPId(0L);
        return zTreeNode;
    }

}

